package com.maxlen.coupon.entity.to;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class SeckillSessionTO{

    /**
     * id
     */
    private Long id;
    /**
     * 场次名称
     */
    private String name;
    /**
     * 每日开始时间
     */
    private Date startTime;
    /**
     * 每日结束时间
     */
    private Date endTime;
    /**
     * 启用状态
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date createTime;

    private List<SeckillSkuRelationTO> seckillSkuRelationTO;

    @Data
    public static class SeckillSkuRelationTO implements Serializable {
        private static final long serialVersionUID = 1L;

        /**
         * id
         */
        private Long id;
        /**
         * 活动id
         */
        private Long promotionId;
        /**
         * 活动场次id
         */
        private Long promotionSessionId;
        /**
         * 商品id
         */
        private Long skuId;
        /**
         * 秒杀价格
         */
        private BigDecimal seckillPrice;
        /**
         * 秒杀总量
         */
        private BigDecimal seckillCount;
        /**
         * 每人限购数量
         */
        private BigDecimal seckillLimit;
        /**
         * 排序
         */
        private Integer seckillSort;

        private SkuInfoTO skuInfoTO;

        @Data
        public static class SkuInfoTO implements Serializable {
            private static final long serialVersionUID = 1L;

            /**
             * skuId
             */
            private Long skuId;
            /**
             * spuId
             */
            private Long spuId;
            /**
             * sku名称
             */
            private String skuName;
            /**
             * sku介绍描述
             */
            private String skuDesc;
            /**
             * 所属分类id
             */
            private Long catalogId;
            /**
             * 品牌id
             */
            private Long brandId;
            /**
             * 默认图片
             */
            private String skuDefaultImg;
            /**
             * 标题
             */
            private String skuTitle;
            /**
             * 副标题
             */
            private String skuSubtitle;
            /**
             * 价格
             */
            private BigDecimal price;
            /**
             * 销量
             */
            private Long saleCount;

        }

    }




}
